// 这个vo的作用是用来存储从NC端下载的数据 表头表体放在同一个vo中
try {
	Type.registerNamespace('INVCOUNTVO');
	INVCOUNTVO = function() {};
	INVCOUNTVO.prototype = new NCMMPubUtil.SuperVO();
	// 表头字段
	// 单据状态
	INVCOUNTVO.FBILLFLAG = {
			name: "fbillflag",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 库存组织
	INVCOUNTVO.PK_ORG_H = {
			name: "pk_org_h",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 集团
	INVCOUNTVO.PK_GROUP = {
			name: "pk_group",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 集团编码
	INVCOUNTVO.PK_GROUP_H = {
			name: "pk_group_h",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 时间戳
	INVCOUNTVO.HTS = {
			name: "hts",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 单据日期
	INVCOUNTVO.DBILLDATE = {
			name: "dbilldate",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		//盘点日期
	INVCOUNTVO.DCOUNTDATE = {
			name: "dcountdate",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 仓库
	INVCOUNTVO.PK_STORDOC = {
			name: "pk_stordoc",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 仓库编码
	INVCOUNTVO.STORCODE = {
			name: "storcode",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		//仓库名称
	INVCOUNTVO.STORNAME = {
			name: "storname",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 单据类型
	INVCOUNTVO.CBILLTYPECODE = {
			name: "cbilltypecode",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 删除标识
	INVCOUNTVO.HDR = {
			name: "hdr",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 单据号
	INVCOUNTVO.VBILLCODE = {
			name: "vbillcode",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 表体字段
		// 组织
	INVCOUNTVO.PK_ORG_B = {
			name: "pk_org_b",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 集团编码
	INVCOUNTVO.PK_GROUP_B = {
			name: "pk_group_b",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 辅单位id
	INVCOUNTVO.CASTUNITID = {
			name: "castunitid",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 辅单位编码
	INVCOUNTVO.FCODE = {
			name: "fcode",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 辅单位名称
	INVCOUNTVO.FNAME = {
			name: "fname",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 主单位id
	INVCOUNTVO.PK_MEASDOC = {
			name: "pk_measdoc",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 计量单位编码
	INVCOUNTVO.TCODE = {
			name: "tcode",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 计量单位名称
	INVCOUNTVO.TNAME = {
			name: "tname",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 换算率
	INVCOUNTVO.VCHANGERATE = {
			name: "vchangerate",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 物料主键
	INVCOUNTVO.PKMATERIAL = {
			name: "pkmaterial",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 物料编码
	INVCOUNTVO.CINVCODE = {
			name: "cinvcode",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 物料名称
	INVCOUNTVO.CINVNAME = {
		name: "cinvname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	}

	// 规格
	INVCOUNTVO.MATERIALSPEC = {
			name: "materialspec",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 型号
	INVCOUNTVO.MATERIALTYPE = {
			name: "materialtype",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 简称
	INVCOUNTVO.MATERIALSHORTNAME = {
		name: "materialshortname",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	}

	// 账面主数量
	INVCOUNTVO.NONHANDNUM = {
			name: "nonhandnum",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		//账面数量
	INVCOUNTVO.NONHANDASTNUM = {
		name: "nonhandastnum",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	}

	// 盘点主数量
	INVCOUNTVO.NACCOUNTNUM = {
			name: "naccountnum",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 盘点数量
	INVCOUNTVO.NACCOUNTASTNUM = {
			name: "naccountastnum",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 表头主键
	INVCOUNTVO.PKHEAD = {
			name: "pkhead",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 表体主键
	INVCOUNTVO.PKITEM = {
		name: "pkitem",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	}

	// 时间戳
	INVCOUNTVO.BTS = {
			name: "bts",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 删除标识
	INVCOUNTVO.BDR = {
		name: "bdr",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	}

	// 批次主键
	INVCOUNTVO.PKBATCHCODE = {
			name: "pkbatchcode",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 批次号
	INVCOUNTVO.VBATCHCODE = {
			name: "vbatchcode",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		//货位主键
		INVCOUNTVO.PK_RACK = {
		name : "pk_rack",
		type : NCMMPubUtil.VALUE_TYPE_TEXT
	}
	// 货位号
	INVCOUNTVO.HCODE = {
		name : "hcode",
		type : NCMMPubUtil.VALUE_TYPE_TEXT
	}
	// 货位名称
	INVCOUNTVO.HNAME = {
		name : "hname",
		type : NCMMPubUtil.VALUE_TYPE_TEXT
	}
		// 已扫描数量
	INVCOUNTVO.SCANNUM = {
			name: "scannum",
			type: NCMMPubUtil.VALUE_TYPE_TEXT
		}
		// 行号
	INVCOUNTVO.CROWNO = {
		name: "crowno",
		type: NCMMPubUtil.VALUE_TYPE_TEXT
	}

	INVCOUNTVO.prototype.getAllAttrs = function() {
		return [INVCOUNTVO.FBILLFLAG,

			INVCOUNTVO.PK_GROUP,
			INVCOUNTVO.PK_GROUP_H,
			INVCOUNTVO.PK_ORG_H,
			INVCOUNTVO.DBILLDATE,
			INVCOUNTVO.DCOUNTDATE,
			INVCOUNTVO.PK_STORDOC,
			INVCOUNTVO.STORCODE,
			INVCOUNTVO.STORNAME,
			INVCOUNTVO.CBILLTYPECODE,
			INVCOUNTVO.HTS,
			INVCOUNTVO.HDR,
			INVCOUNTVO.VBILLCODE,
			INVCOUNTVO.CASTUNITID,
			INVCOUNTVO.FCODE,
			INVCOUNTVO.FNAME,
			INVCOUNTVO.VCHANGERATE,
			INVCOUNTVO.PK_MEASDOC,
			INVCOUNTVO.TCODE,
			INVCOUNTVO.TNAME,
			INVCOUNTVO.PKMATERIAL,
			INVCOUNTVO.CINVCODE,
			INVCOUNTVO.CINVNAME,
			INVCOUNTVO.MATERIALSPEC,
			INVCOUNTVO.MATERIALTYPE,
			INVCOUNTVO.MATERIALSHORTNAME,
			INVCOUNTVO.NONHANDNUM,
			INVCOUNTVO.NONHANDASTNUM,
			INVCOUNTVO.NACCOUNTNUM,
			INVCOUNTVO.NACCOUNTASTNUM,
			INVCOUNTVO.PKHEAD,
			INVCOUNTVO.PKITEM,
			INVCOUNTVO.PK_ORG_B,
			INVCOUNTVO.PK_GROUP_B,
			INVCOUNTVO.BTS,
			INVCOUNTVO.BDR,
			INVCOUNTVO.PKBATCHCODE,
			INVCOUNTVO.VBATCHCODE,
			INVCOUNTVO.PK_RACK,
			INVCOUNTVO.HCODE,
			INVCOUNTVO.HNAME,
			INVCOUNTVO.SCANNUM,
			INVCOUNTVO.CROWNO
		];
	}

	INVCOUNTVO.prototype.getTableName = function() {
		return "ic_invcount";

	}

	INVCOUNTVO.prototype.getPrimaryAttr = function() {
		return INVCOUNTVO.PKITEM;
	}
} catch(e) {
	$e(e);
}